package entity;

import java.io.Serializable;
import java.util.UUID;

public class Group implements Serializable {

    private static final long serialVersionUID = 6752778513871801903L;

    private UUID uuid;
    private String name;
    private String masterUsername;
    private String avatar;

    public Group(String name, String masterUsername, String avatar) {
        uuid = UUID.randomUUID();
        this.name = name;
        this.masterUsername = masterUsername;
        this.avatar = avatar;
    }

    public Group(Group other) {
        this.uuid = other.uuid;
        this.name = other.name;
        this.masterUsername = other.masterUsername;
        this.avatar = other.avatar;
    }

    public UUID getUuid() {
        return uuid;
    }

    public String getName() {
        return name;
    }

    public String getMasterUsername() {
        return masterUsername;
    }

    public String getAvatar() {
        return avatar;
    }
}
